<?php if( $errmsg->size('reg') > 0 ) $errmsg->output('reg'); ?>

<div class="addShop">
<div class="addShop01"></div>
<div class="addShop02">
<h3 class="addShop_title">添加网店（<a href="<?php echo edp_href_link(PAGENAME_HELP, 'subpage=101');?>" target="_blank">如何添加</a>）：第二步</h3>

<form method="POST" grayOnCommit=".addShop"
	action="<?php echo edp_href_link(PAGENAME_ADD_SHOP);?>"
	id="addShopForm2"><input type="hidden" name="action" value="addShop2" /><br />
<input type="hidden" name="shopURL"
	value="<?php if(edp_isset_session('shopURL')) echo edp_getsession('shopURL'); ?>" />
<input type="hidden" name="platID"
	value="<?php if(edp_isset_session('platID')) echo edp_getsession('platID'); ?>" />
<input type="hidden" name="extShopID"
	value="<?php if(edp_isset_session('extShopID')) echo edp_getsession('extShopID'); ?>" />
<input type="hidden" name="status"
	value="<?php if(edp_isset_session('status')) echo edp_getsession('status'); ?>" />
<input type="hidden" name="isMall"
	value="<?php if(edp_isset_session('isMall')) echo edp_getsession('isMall'); ?>" />
<input type="hidden" id="province" name="province"
	value="<?php if(isset($province)) echo $province;?>"> <input
	type="hidden" id="city" name="city"
	value="<?php if(isset($city)) echo $city;?>">



<table border="0" cellspacing="0" cellpadding="0" class="addShopTable">

	<tr>
		<td class="addShopInput_title">店铺名称：<b class="redfont">*</b></td>
		<td><input name="shopName" id="shopName"
			value="<?php if(isset($shopName)) echo $shopName; ?>" class="input_1" /></td>
	</tr>

	<tr>
		<td class="addShopInput_title">掌柜名称：<b class="redfont">*</b></td>
		<td><input name="nickName" id="nickName"
			value="<?php if(isset($nickName)) echo $nickName; ?>" class="input_1" />&nbsp;&nbsp;商城掌柜可以填入"无"</td>
	</tr>

	<tr>
		<td class="addShopInput_title">图标链接：</td>
		<td><input name="logoURL" id="logoURL"
			value="<?php if(isset($logoURL)) echo $logoURL; ?>" class="input_6" />&nbsp;&nbsp;填入logo的链接地址&nbsp; <a id="shop_pre_btn" onclick="previewLogo();" style="color:blue" >点击预览</a>

		</td>
	</tr>
        
              <?php
               if(!edp_is_empty_string($logoURL)) {
                echo '<tr><td class="addShopInput_title"></td>';
                echo '<td><img src="'.$logoURL.'" class="item_list_pic_shop" id="shop_pre_pic"></td></tr>'; 
               } else{
                echo '<tr><td class="addShopInput_title"></td>';
                echo '<td><img src="'.STATIC_DOMAIN.'image/defaultpicture80.gif" class="item_list_pic_shop" id="shop_pre_pic"></td></tr>';                	               	
               }
               ?>   
                   
              <tr>
		<td class="addShopInput_title">创店日期：</td>
		<td><input name="createdDate" type="text" id="createdDate"
			value="<?php if(isset($createdDate)) echo $createdDate; ?>"
			class="input_5" /></td>
	</tr>


	<tr>
		<td class="addShopInput_title">所在地：<b class="redfont">*</b></td>
		<td><select id="selprovince" name="selprovince">
			<option value="">选择省份</option>
		</select> 省/市 <select id="selcity" name="selcity">
			<option value="">选择城市</option>
		</select> 市</td>
	</tr>

	<tr>
		<td class="addShopInput_title">店铺类别：<b class="redfont">*</b></td>
		<td><select name="shopCategory" id="shopCategory" class="filter_3">
			<br />
			<option value="">请选择</option>
               <?php
			 	 $shopCategoryList=$shopCategoryDAO->GetLevel1Category(); //读取静态array
            	 foreach( $shopCategoryList as $key=>$value ){
            		if($value == $shopCategory)
                	 echo "<option value=\"$value\" selected=selected>$key</option>\n";
                	else 
                	 echo "<option value=\"$value\">$key</option>\n";
            	 }
                ?>
        		</select></td>
	</tr>
	<tr>
		<td class="addShopInput_title">店铺简介：</td>
		<td>			
   
                <?php 
                /*
                   if(!edp_is_empty_string($shopDesc)) 
                     echo '<div id="shopDes">'.  $shopDesc . '</div><div id="sToogle"><a href="#">[全部展开]</a></div>'; 
               */
				 ?>              
        	   </td>
	</tr>
	<tr>
		<td class="addShopInput_title"></td>
		<td><textarea name="shopDesc" class="textarea_comment" id="shopDesc"><?php if(isset($shopDesc)) echo $shopDesc ; ?></textarea>
		</td>
	</tr>

	<tr>
		<td colspan="2" align="center"><a
			href="<?php echo edp_href_link(PAGENAME_ADD_SHOP,'shopURL='.edp_getsession('shopURL'));?>"><<
		返回上一步</a> &nbsp;&nbsp; <input type="button" class="btn_1" value="预览简介"
			id="preview_btn" onclick="previewIntro();" />&nbsp;&nbsp; <input
			type="submit" class="btn_1" value="提交" id="submit_btn" /></td>
	</tr>
</table>
</form>
</div>

<div class="addShop03"></div>

</div>
<div id="previewWindow" style="display: none; background-color: color;">
<iframe id="previewFrame" style="width: 100%; height: 90%;"></iframe><br />
<p align="center"><input type="button" class="btn_1" value="关闭"
	onclick="closePreview();" /></p>
</div>

